import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)

const store = new Vuex.Store({
  state(){
    return{
      destareainfo:{},
      nearcar:[],
      jhnearcar:[]
    }
  },
  mutations:{
    changedestinfo(state,payload){
      state.destareainfo = payload
    },
    changenearcar(state,payload){
      state.nearcar = payload
    },
    changejgnearcar(state,payload){
      state.jhnearcar = payload
    }
  }
})

export default store